print("dwdar成绩计算器".center(50,"*"))
num = input("请输入成绩,每个成绩用逗号,分割>>>")
new_list = num.split(',')

a = int(new_list[0])
b = int(new_list[1])
c = int(new_list[2])
d = int(new_list[3])
sum = a + b + c + d

av = sum / len(new_list)
print("总分为%s分,平均分为%s分" % (sum, round(av,2)))


